<template>
	<view>
		<u-sticky bgColor="#6492FF" offsetTop=0 customNavHeight=0>
			<navbox title="申请记录"></navbox>
		</u-sticky>
		<view class="con" v-if="list.length>0">
			<view class="con__item" v-for="(item,index) in list" :key="index">
				<view class="">
					姓名：{{item.name}}
				</view>
				<view class="" v-if="item.targetAccountType==1">
					类型：升级为金牌账户
				</view>
				<view class="" v-if="item.targetAccountType==2">
					类型：升级为团长账户
				</view>
				<view class="" v-if="item.targetAccountType==3">
					类型：升级为合伙人
				</view>
				<view class="" v-if="item.status==0">
					审核状态：待审核
				</view>
				<view class="" v-if="item.status==1">
					审核状态：已通过
				</view>
				<view class="" v-if="item.status==2">
					审核状态：已拒绝
				</view>
				<view class="">
					时间：{{item.buildTime}}
				</view>
			</view>
		</view>
		<view class="" v-else style="margin-top: 200rpx;">
			<u-empty icon="/static/img/index/empty.png" mode="data" text="暂时没有数据"></u-empty>
		</view>
	</view>
</template>

<script>
	import {upperlist} from '@/api/user.js'
	export default {
		data() {
			return {
				list:[]
			};
		},
		onLoad() {
			this.getlist()
		},
		methods:{
			getlist(){
				upperlist().then(res=>{
					uni.stopPullDownRefresh()
					if(res.data.code==200){
						this.list=res.data.data
					}
				})
			}
		},
		onPullDownRefresh() {
			this.getlist()
		}
	}
</script>

<style lang="scss">
page{
	background-color: #f6f6f6;
}
.con{
	padding: 25rpx 16rpx 70rpx;
	&__box{
		background: #FFFFFF;
		border-radius: 14rpx;
		padding: 43rpx 33rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		&__sr{
			width:440rpx;
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: space-between;
			height: 133.33rpx;
			&__t{
				width: 390rpx;
				height: 56rpx;
				border-radius: 28rpx;
				border: 1rpx solid rgba(112, 112, 112, .5);
				padding: 0 25rpx;
				font-family: Source Han Sans SC;
				font-weight: 400;
				font-size: 26rpx;
				color: #707070;
			}
		}
		&__btn{
			width: 133rpx;
			height: 133rpx;
			background: #6492FF;
			border-radius: 7rpx;
			font-family: Source Han Sans SC;
			font-weight: 400;
			font-size: 26rpx;
			color: #FFFFFF;
		}
	}
	&__item{
		margin-bottom: 25rpx;
		padding: 24rpx 36rpx;
		line-height: 46rpx;
		font-family: Source Han Sans SC;
		font-weight: 400;
		font-size: 26rpx;
		color: #3E3D3D;
		background: #FFFFFF;
		border-radius: 14rpx;
	}
}
</style>
